package com.example.service.impl;

import com.example.mapper.EmployeeMapper;
import com.example.model.Employee;
import com.example.service.EService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
@Transactional
public class EServiceImpl implements EService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> getAllEmployees() {
        return employeeMapper.findAll();
    }
}